import Http from '@/http';

export function pageApi(params:any) {
    return Http.get('production/production/scheduling/list', params)
}

export function saveApi(params:any) {
    return Http.post('production/production/scheduling/' + (!params.id ? 'add' : 'update'), params)
}

export function deleteApi(id:any) {
    return Http.post('production/production/scheduling/delete?id=' + id)
}

export function examineApi(ids:any) {
    return Http.post('production/production/scheduling/check?ids=' + ids)
}

export function generateTaskApi(id:any) {
    return Http.post('production/production/scheduling/generate_task?id=' + id)
}

export function generateSchedulApi(configId:any) {
    return Http.post('production/production/scheduling/generate?configId=' + configId)
}